package jsyf.oa.facade.system;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

/**
 * Created by Maqiuqiu on 2018/7/21.
 */
@Path("/messageService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface MessageFacade {
    @Path("/save")
    String save(String jsonData);

    @Path("/delById")
    Boolean delById(String id);

    @Path("/getMsgByUserId")
    List<JSONObject> getMsgByUserId(String receiverUserId, String messageId);

    @Path("/setMessageReadFlag")
    Boolean setMessageReadFlag(String jsonData);

    @Path("/getMessageForApp")
    JSONObject getMessageForApp(String jsonData);

    @Path("/getMessageForSignIn")
    Boolean getMessageForSignIn();

    @Path("/getMessageForDaQuSignIn")
    Boolean getMessageForDaQuSignIn();

    @Path("/getMessageForSupportSignIn")
    Boolean getMessageForSupportSignIn();
}
